package main

import (
	"github.com/gin-gonic/gin"
	"zk2zc/api"
	"zk2zc/config"
	"zk2zc/inits"
)

func main() {
	r := gin.Default()
	config.GetViper()
	inits.MysqlInit()
	inits.RedisInit()
	api.RouterLoad(r)

	r.Run(":8081") // 监听并在 0.0.0.0:8080 上启动服务
}
